package com.wei;

import java.util.jar.JarEntry;

/**
 * @Author :sunwei
 * @Description:
 * @Date create in 17:28  2021/5/19
 * @Modified by:
 */
public class VolatileTest {

    private volatile String testStr;

    public void test(){
        int i=0;
        int j = i++;
        testStr = "test";
        i=1;
        j = i++;
    }
    public static void main(String[] args) {

    }
}
